<script>
if (window.testRunner)
    testRunner.dumpAsText();

function test(text) {
    document.write('<iframe src="../resources/no-last-modified.php?date=' + escape(text) + '"></iframe>');
}

test('');

window.onload = function() {
    var lastModified = Date.parse(frames[0].document.body.textContent);
    var now = new Date();
    if (lastModified > now - (24+1)*60*60*1000)
        alert('PASS');
    else
        alert('FAIL');
}
</script>
